import type { User, UserInfo } from '@/types/user'
import { request } from '@/utils/request'

// 用户登录
export const userLogin = (mobile: string, code: string) =>
  request<User>('authorizations', 'POST', { mobile, code })

// 获取用户信息
export const getUserInfo = () => request<UserInfo>('user', 'GET')
